package com.mallcai.bigdata.ladon.service.report.impl.handler.support.rule;


import com.mallcai.bigdata.ladon.dpl.vo.DataType;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-21 22:53
 */
public abstract class AbstractSingleStringRuleOperator extends AbstractSingleRuleOperator {

    @Override
    protected boolean test(Object obj1) {
        return innerTest((String) obj1);
    }

    protected abstract boolean innerTest(String obj);

    @Override
    public DataType[] getSupportDataTypes() {
        return IRuleOperator.STRING_DATA_TYPE;
    }

}
